package work06;

public class test1 {
    interface Hobby{
        void enjoy();
    }
    public class Playing implements Hobby{
        @Override
        public void enjoy(){
            System.out.println("我喜欢玩逆水寒");
        }
    }
    public class Main{
        public static void main(String[] args) {
            Hobby playing = new Hobby(){
                @Override
                public void enjoy(){

                }
            };
            playing.enjoy();
        }
    }
}
